<%--
  Created by IntelliJ IDEA.
  User: j
  Date: 2021/11/22
  Time: 8:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="static/bootstrap4/css/bootstrap.css">
    <script src="static/js/jquery-3.2.1.js"></script>
    <script src="static/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="static/bootstrap4/js/bootstrap.js"></script>
    <script src="/static/My97DatePicker/WdatePicker.js"></script>
    <title>Title</title>

</head>
<body>
<div class="row">
    <div class="col-3">
        <div class="list-group" id="list-tab" role="tablist">

        </div>
    </div>
    <div class="col-9">
        <div class="tab-content" id="nav-tabContent">

        </div>
    </div>
</div>
<script>
    $(function (){
        $.post(
            "getTree",
            function (obj){
               $("#list-tab").treeview({
                   data:obj,
                   onNodeSelected: function (a,b){
                    if (b.href!=null&&b.href!=''){
                        $("#nav-tabContent").load(b.href);
                    }
                   }
               });
            }
        );
    })
</script>
</body>
</html>
